package com.ruoyi.projects.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客服智能问题对象 sl_questions
 * 
 * @author yangz
 * @date 2024-12-01
 */
public class SlQuestions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问题Id */
    private Long id;

    /** 问题 */
    @Excel(name = "问题")
    private String question;

    /** 回答 */
    @Excel(name = "回答")
    private String answer;

    /** 上架状态（0下架，1上架） */
    @Excel(name = "上架状态", readConverterExp = "0=下架，1上架")
    private String ifFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuestion(String question) 
    {
        this.question = question;
    }

    public String getQuestion() 
    {
        return question;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setIfFlag(String ifFlag) 
    {
        this.ifFlag = ifFlag;
    }

    public String getIfFlag() 
    {
        return ifFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("question", getQuestion())
            .append("answer", getAnswer())
            .append("ifFlag", getIfFlag())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
